import request from '@/utils/request'

// 查询单一窗口舱单申报接口配置列表
export function listMftDeclApiAddr(query) {
  return request({
    url: '/bt/mftDeclApiAddr/list',
    method: 'get',
    params: query
  })
}

// 查询单一窗口舱单申报接口配置详细
export function getMftDeclApiAddr(id) {
  return request({
    url: '/bt/mftDeclApiAddr/getInfo/' + id,
    method: 'get'
  })
}

// 新增单一窗口舱单申报接口配置
export function addMftDeclApiAddr(data) {
  return request({
    url: '/bt/mftDeclApiAddr/add',
    method: 'post',
    data: data
  })
}

// 修改单一窗口舱单申报接口配置
export function updateMftDeclApiAddr(data) {
  return request({
    url: '/bt/mftDeclApiAddr/edit',
    method: 'post',
    data: data
  })
}

// 删除单一窗口舱单申报接口配置
export function delMftDeclApiAddr(id) {
  return request({
    url: '/bt/mftDeclApiAddr/remove/' + id,
    method: 'get'
  })
}

// 导出单一窗口舱单申报接口配置
export function exportMftDeclApiAddr(query) {
  return request({
    url: '/bt/mftDeclApiAddr/export',
    method: 'get',
    params: query
  })
}